/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import com.umeng.analytics.pro.z;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class VideoTextBookEntity {
    @NotNull
    private final User user;
    @NotNull
    private final List<TextBookEntity> videoTextbooks;

    public VideoTextBookEntity(@NotNull User user, @NotNull List<TextBookEntity> videoTextbooks) {
        Intrinsics.checkNotNullParameter(user, "user");
        Intrinsics.checkNotNullParameter(videoTextbooks, "videoTextbooks");
        this.user = user;
        this.videoTextbooks = videoTextbooks;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ VideoTextBookEntity copy$default(VideoTextBookEntity videoTextBookEntity, User user, List list, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            user = videoTextBookEntity.user;
        }
        if ((i2 & 2) != 0) {
            list = videoTextBookEntity.videoTextbooks;
        }
        return videoTextBookEntity.copy(user, list);
    }

    @NotNull
    public final User component1() {
        return this.user;
    }

    @NotNull
    public final List<TextBookEntity> component2() {
        return this.videoTextbooks;
    }

    @NotNull
    public final VideoTextBookEntity copy(@NotNull User user, @NotNull List<TextBookEntity> videoTextbooks) {
        Intrinsics.checkNotNullParameter(user, "user");
        Intrinsics.checkNotNullParameter(videoTextbooks, "videoTextbooks");
        return new VideoTextBookEntity(user, videoTextbooks);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof VideoTextBookEntity)) {
            return false;
        }
        VideoTextBookEntity videoTextBookEntity = (VideoTextBookEntity) obj;
        return Intrinsics.areEqual(this.user, videoTextBookEntity.user) && Intrinsics.areEqual(this.videoTextbooks, videoTextBookEntity.videoTextbooks);
    }

    @NotNull
    public final User getUser() {
        return this.user;
    }

    @NotNull
    public final List<TextBookEntity> getVideoTextbooks() {
        return this.videoTextbooks;
    }

    public int hashCode() {
        return (this.user.hashCode() * 31) + this.videoTextbooks.hashCode();
    }

    @NotNull
    public String toString() {
        return "VideoTextBookEntity(user=" + this.user + ", videoTextbooks=" + this.videoTextbooks + ')';
    }
}